package com.lgr.store.dao;

import com.lgr.store.utils.PageObject;
import com.lgr.store.vo.*;
import org.apache.ibatis.annotations.Param;


import java.util.List;

public interface CharactersDAO {
    void save(CharactersVo characters);
    void update(CharactersVo characters);
    void del(@Param("characterId") int characterId);
    List<CharactersVo> list(@Param("pager") PageObject pager);
    int getCount();
    CharactersVo getById(@Param("characterId") int characterId);
    List<ModuleVo> selectModule();
    List<CharmoduleVo> selectCharmodule(@Param("characterId") int characterId);
    void delCharmodule(@Param("characterId") int characterId);
    void saveCharmodule(@Param("item") CharmoduleVo CharmoduleVo);
    List<EmpVo> findEmpDep();
    List<CharEmpVo> findCharEmp(@Param("characterId") int characterId, @Param("empId") int empId);
    void delCharEmp(@Param("characterId") int characterId);
    void saveCharEmp(CharEmpVo empVo);
    List<ModuleVo> findEmpChar(@Param("empId") String empId);
    List<ModuleVo> findModule();
}
